srcs := $(wildcard *.c)
out := client

CC := gcc
CFLAGS := -Wall -g -lpthread

$(out): $(srcs)
	$(CC) $^ -o $@ $(CFLAGS)

.PHONY: clean rebuild
clean:
	$(RM) $(out)
rebuild: clean $(out)